package com.example.tool.bean.wcaiexcel;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;
@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonIgnoreProperties(ignoreUnknown = true)
public class FieldQueryResponse extends WeComApiResponse{
    @JsonProperty("total")
    private Integer total;
    @JsonProperty("fields")
    private List<Field>fields=new ArrayList<>();

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class Field {
        @JsonProperty("field_id")
        private String fieldId;
        @JsonProperty("field_title")
        private String fieldTitle;
        @JsonProperty("field_type")
        private String fieldType;
    }

}
